/**
 * Created by Administrator on 15-7-16.
 */
var landDialog = new LandDialog();
var UI = RichBase.extend({
	EVENTS : {
		"click" : {
			".box .terminal_merge" : "onMergeBtnClick"
		}
	},
	init : function(opt){

	},
	onMergeBtnClick : function(that,e){
		var tarBtn = $(e.currentTarget);
		var lid = tarBtn.attr("data-lid");
		var salerid = tarBtn.attr("data-salerid");
		var tarBox = tarBtn.parent();
		var infoBox = tarBox.children(".linfo");
		var imgDiv = tarBox.children(".imgDiv");
		var title = infoBox.find(".title a").text();
		landDialog.setCurrentTitle(title);
		landDialog.setCurrentLid(lid);
		landDialog.setCurrentSalerid(salerid);
		landDialog.open({offset:-20});
	}
});

new UI({container:$("#boxContainer")});